﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using LinQ_DTO;
namespace BUS
{
    public class PathsBUS
    {
        public List<aspnet_Path> LayTatCaPath()
        {
            PathsDAO pDAO = new PathsDAO();
            return pDAO.LayTatCaPath();
        }

        public List<aspnet_Path> LayTatCaPathTheoID(Guid ID)
        {
            PathsDAO pDAO = new PathsDAO();
            return pDAO.LayTatCaPathTheoID(ID);
        }

        public List<aspnet_Application> LayApplicationsTheoPath(Guid ID)
        {
            PathsDAO pDAO = new PathsDAO();
            return pDAO.LayApplicationsTheoPath(ID);
        }

        public void ThemPath(aspnet_Path path)
        {
            PathsDAO pDAO = new PathsDAO();
            pDAO.ThemPath(path);
        }

        public void XoaApplicationTheoID(Guid ID)
        {
            PathsDAO pDAO = new PathsDAO();
            pDAO.XoaApplicationTheoID(ID);
        }

        public void CapNhatPath(Guid ID, string Path, string LoweredPath)
        {
            PathsDAO pDAO = new PathsDAO();
            pDAO.CapNhatPath(ID, Path, LoweredPath);
        }
    }
}
